package com.red.star.wechat.data.mappers;

import com.red.star.wechat.data.core.base.MyMapper;
import com.red.star.wechat.data.entity.MerchantStyle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantStyleMapper extends MyMapper<MerchantStyle> {

    MerchantStyle findMerchantStyleByMerchantIdAndMainCateId(@Param("merchantId") Integer merchantId, @Param("mainCateId") Integer mainCateId);

    public void deleteByMerchantId(@Param("merchantId") Integer merchantId);

    List<MerchantStyle> findMerchantStyleByMerchantId(@Param("merchantId") Integer merchantId);

    List<MerchantStyle> findMainCateIdByMerchantId(@Param("merchantId") Integer merchantId);

    public void updateMerchantStyle(MerchantStyle merchantStyle);

    public Integer insertMerchantStyle(MerchantStyle merchantStyle);
}
